﻿<controls:ChildWindow
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:sc="clr-namespace:SilverlightContrib.Controls;assembly=SilverlightContrib.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="GlobalOfficeTools.Views.Entities.ClientEditNew"
    DataContext="{Binding [ClientEditNewViewModel], Source={StaticResource mvvLocator}}"
    Width="830" Height="451" 
    Title="ClientEditNew" Style="{StaticResource FlatChildWindow}">
    
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Grid Height="46" Margin="17,152,19,0" VerticalAlignment="Top" d:LayoutOverrides="Height">
    		<TextBlock Height="18" HorizontalAlignment="Left" Margin="44,14,0,0" Text="Name:" VerticalAlignment="Top" Width="70" />
    		<TextBlock Height="18" HorizontalAlignment="Left" Margin="561,14,0,0" Text="Short Name:" VerticalAlignment="Top" Width="70" />
    		<TextBox Height="23" HorizontalAlignment="Left" Margin="118,11,0,0" x:Name="textBox1" VerticalAlignment="Top" Width="439" />
    		<TextBox Height="23" HorizontalAlignment="Left" Margin="635,11,0,0" x:Name="textBox2" VerticalAlignment="Top" Width="129" />
    		<Image HorizontalAlignment="Left" Margin="3,5,0,9" Source="/GlobalOfficeTools;component/Images/32x32/entities.png" Stretch="Fill" Width="32">
    			<Image.Effect>
    				<DropShadowEffect/>
    			</Image.Effect>
    		</Image>
    	</Grid>
        
        <Button x:Name="CancelButton" Content="Cancel" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,8,12,4" Grid.Row="1" />
        <Button x:Name="OKButton" Content="OK" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,8,91,4" Grid.Row="1" />
        <controls:TabControl Margin="8,0,20,23" x:Name="tabControl1" Height="177" VerticalAlignment="Bottom">
            <controls:TabItem Header="General">
                <Grid>
                    <TextBlock Height="18" HorizontalAlignment="Left" Margin="6,17,0,0" x:Name="textBlock1" Text="Client Type" VerticalAlignment="Top" Width="90" />
                    <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,13,493,0" x:Name="comboBox1" VerticalAlignment="Top" Width="165" ItemsSource="{Binding ClientTypes}" DisplayMemberPath="Value" SelectedItem="{Binding ClientTypeSelected}" />
                    <TextBlock Height="18" HorizontalAlignment="Left" Margin="370,17,0,0" x:Name="textBlock2" Text="Vendor Type" VerticalAlignment="Top" Width="70" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="446,13,0,0" x:Name="comboBox2" VerticalAlignment="Top" Width="165" ItemsSource="{Binding VendorTypes}" DisplayMemberPath="Value" SelectedItem="{Binding VendorTypeSelected}" />
                    <TextBlock Height="18" HorizontalAlignment="Left" Margin="6,61,0,0" x:Name="textBlock5" Text="Manager" VerticalAlignment="Top" Width="90" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="110,56,0,0" x:Name="comboBox4" VerticalAlignment="Top" Width="165" ItemsSource="{Binding Employees}" DisplayMemberPath="FullName" />
                    <TextBlock Height="18" HorizontalAlignment="Left" Margin="6,101,0,0" x:Name="textBlock6" Text="Status" VerticalAlignment="Top" Width="90" d:LayoutOverrides="VerticalAlignment" />
                    <ComboBox DisplayMemberPath="UserState" Height="23" HorizontalAlignment="Left" ItemsSource="{Binding UserStates}" Margin="110,96,0,0" x:Name="comboBox5" VerticalAlignment="Top" Width="165" d:LayoutOverrides="VerticalAlignment" />
                </Grid>
            </controls:TabItem>
            <controls:TabItem Header="Addresses">
                <Grid />
            </controls:TabItem>
            <controls:TabItem Header="Accounting">
                <Grid>
                    <TextBlock Height="18" HorizontalAlignment="Left" Margin="10,15,0,0" x:Name="textBlock4" Text="NIF Number" VerticalAlignment="Top" Width="70" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="86,11,0,0" x:Name="textBox3" VerticalAlignment="Top" Width="165" />
                    <TextBlock Height="18" HorizontalAlignment="Left" Margin="10,47,0,0" x:Name="textBlock3" Text="Payment Term" VerticalAlignment="Top" Width="89" />
                    <ComboBox Height="23" Margin="0,42,498,0" x:Name="comboBox3" VerticalAlignment="Top" HorizontalAlignment="Right" Width="165" />
                </Grid>
            </controls:TabItem>
        </controls:TabControl>
        <TextBlock HorizontalAlignment="Left" Height="41" Margin="17,8,0,0" TextWrapping="Wrap" Text="Entities" VerticalAlignment="Top" Width="178" FontSize="29.333" Foreground="#FF8D8D8D"/>
        <Rectangle Fill="#FF5C5CF9" Height="5" Margin="8,53,8,0" Stroke="Black" VerticalAlignment="Top" StrokeThickness="0"/>
        <TextBlock Height="27" Margin="327,26,393,0" TextWrapping="Wrap" Text="General" VerticalAlignment="Top" FontSize="17.333" Foreground="#FF8D8D8D"/>
        <TextBlock Height="27" Margin="0,26,289,0" TextWrapping="Wrap" Text="Addresses" VerticalAlignment="Top" FontSize="17.333" HorizontalAlignment="Right" Width="100" Foreground="#FF8D8D8D"/>
    </Grid>
</controls:ChildWindow>